package com.wfl.sampling.service;

import com.wfl.sampling.entity.Activity;

import java.util.List;

/**
 * @author gefangjie
 */
public interface UserParticipationService {

    //添加参与活动
    void addParticipation(int userId, int activityId);
    //取消参与活动
    void deleteParticipation(int userId, int activityId);
    //检查是否参与活动
    boolean checkParticipation(int userId, int activityId);
    //更新支付状态
    void updatePaymentStatus(int userId, int activityId);

    //通过用户id查询参与活动
    List<Activity> queryUpByUserId(int userId);
}
